﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace csharp_base64
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("input: ");
            string str_in = Console.ReadLine();

            string enc = Base64.Base64Encode(str_in, Encoding.UTF8);
            string dec = Base64.Base64Decode(enc, Encoding.UTF8);

            Console.Write("UTF8 encoding: ");
            Console.WriteLine(enc);

            Console.Write("UTF8 decoding: ");
            Console.WriteLine(dec);

            Console.ReadKey();
        }
    }
}
